package com.pgfx.ejbModule.utils;

import java.io.Serializable;
import java.util.Map;

public class ConsultarConfig implements Serializable {
	
	public static final int REC_X_PAGINA = 999999999; //Sin limites de registros por pagina, se pasa por la web
	private static final long serialVersionUID = 1L;
	
	private Integer limit;
	private Integer start;
	private Object valueFilter;
	private Object filtroExplicito;
	private Object valueFilter_1;
	private Object valueFilter_2;
	private Object valueFilter_3;
	private Object valueFilter_4;
	private Map<Object, Object> parameters;
	
	private int collectionReturn = 0; //0=Recupera LIST en resultList, 1=Recupera SET en resultSet 
	
	public ConsultarConfig() {
		super();
	}
	
	public ConsultarConfig(Integer start, Integer limit, Object objFilter) {
		super();
		
		if (limit==null)
			this.limit = REC_X_PAGINA;
		else
			this.limit = limit;
		
		if (start==null)
			this.start = 0;
		else 
			this.start = start;
		
		this.valueFilter = objFilter;
	}
	public ConsultarConfig(Integer start, Integer limit, Object valueFilter, Object valueFilter_1){
		this(start, limit, valueFilter);
		this.valueFilter_1 = valueFilter_1;
	}
	public ConsultarConfig(Integer start, Integer limit, Object valueFilter, Object valueFilter_1, Object valueFilter_2 ){
		this(start, limit, valueFilter, valueFilter_1);
		this.valueFilter_2 = valueFilter_2;
	}
	public ConsultarConfig(Integer start, Integer limit, Object valueFilter, Object valueFilter_1, Object valueFilter_2, Object valueFilter_3 ){
		this(start, limit, valueFilter, valueFilter_1, valueFilter_2);
		this.valueFilter_3 = valueFilter_3;
	}
	public ConsultarConfig(Integer start, Integer limit, Object valueFilter, Object valueFilter_1, Object valueFilter_2, Object valueFilter_3, Object valueFilter_4 ){
		this(start, limit, valueFilter, valueFilter_1, valueFilter_2, valueFilter_3);
		this.valueFilter_4 = valueFilter_4;
	}
	public ConsultarConfig(Integer start, Object valueFilter) {
		super();
				
		if (start==null)
			this.start = 0;
		else 
			this.start = start;
		
		this.limit = REC_X_PAGINA;
		this.valueFilter = valueFilter;
	}
	
	public int getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int pagina) {
		this.start = pagina;
	}

	public Object getValueFilter() {
		return valueFilter;
	}

	public void setValueFilter(Object objFilter) {
		this.valueFilter = objFilter;
	}
	
	public Object getValueFilter_1() {
		return valueFilter_1;
	}

	public void setValueFilter_1(Object valueFilter_1) {
		this.valueFilter_1 = valueFilter_1;
	}

	public Object getValueFilter_2() {
		return valueFilter_2;
	}

	public void setValueFilter_2(Object valueFilter_2) {
		this.valueFilter_2 = valueFilter_2;
	}

	public Object getValueFilter_3() {
		return valueFilter_3;
	}

	public void setValueFilter_3(Object valueFilter_3) {
		this.valueFilter_3 = valueFilter_3;
	}

	public Object getValueFilter_4() {
		return valueFilter_4;
	}

	public void setValueFilter_4(Object valueFilter_4) {
		this.valueFilter_4 = valueFilter_4;
	}

	public void setFiltroExplicito(Object filtroExplicito) {
		this.filtroExplicito = filtroExplicito;
	}

	public Object getFiltroExplicito() {
		return filtroExplicito;
	}

	public int getCollectionReturn() {
		return collectionReturn;
	}

	public void setCollectionReturn(int collectionReturn) {
		this.collectionReturn = collectionReturn;
	}

	public Map<Object, Object> getParameters() {
		return parameters;
	}

	public void setParameters(Map<Object, Object> parameters) {
		this.parameters = parameters;
	}
	
}
